import styled from "styled-components";
export const HomeWrapper = styled.div/*css*/ `
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;

  .layout-collapse-demo {
    width: 100%;
    height: 100%;
    display: flex;
    border: 1px solid var(--color-border);
    background: var(--color-bg-2);
    //

    .arco-layout-sider {
      height: 100%;
      overflow: hidden; /* 禁用自身滚动 */
      top: 0;
      left: 0;
      bottom: 0;
      z-index: 1001;
      border-right: 1px solid var(--color-border);
      background: var(--color-bg-2);
    }
  }
  //   .layout-collapse-demo .arco-layout-sider {
  //     height: 100vh;
  //     position: sticky;
  //     top: 0;
  //     left: 0;
  //     z-index: 100;
  //     border-right: 1px solid var(--color-border);
  //   }

  .layout-collapse-demo .arco-layout-sider .logo {
    cursor: pointer;
    height: 32px;
    margin: 12px 7px;
    border-radius: 3px;
    border: 1px solid var(--color-border);

    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    img {
      width: 32px;
      height: 32px;
      vertical-align: middle;
      margin-right: 10px;
    }
    p {
      font-weight: 540;
      overflow: hidden;
      white-space: nowrap;
      color: var(--color-text-1);
    }
  }

  .layout-collapse-demo .arco-layout-sider-light .logo {
    background: var(--color-fill-2);
  }

  .arco-layout-content {
    // height: calc(100% - 64px - 48px); /* 总高度减去header和footer */
    min-height: calc(100vh - 64px - 48px); /* 确保最小高度 */
    background: var(--color-bg-2);

    color: var(--color-text-2);
  }

  .layout-collapse-demo .arco-layout-footer,
  .layout-collapse-demo .arco-layout-content {
    // color: var(--color-white);
    background: var(--color-bg-2);

    // text-align: center;
    font-stretch: condensed;
    font-size: 16px;
    // display: flex;
    // flex-direction: column;
    // justify-content: center;
  }
  .layout-collapse-demo .arco-layout-content {
    height: 800px;
  }
  .layout-collapse-demo .arco-layout-footer {
    color: var(--color-text-2);
    background: var(--color-bg-2);

    height: 48px;
    line-height: 48px;
    font-weight: 400;
    font-size: 14px;
  }

  .layout-collapse-demo .arco-layout-content {
    // background: var(--color-bg-2);
    background: var(--color-fill-2);
    color: var(--color-text-2);
    font-weight: 400;
    font-size: 14px;
  }

  .layout-collapse-demo .arco-layout-header {
    display: flex;
    align-items: center;
    height: 64px;
    line-height: 64px;
    background: var(--color-bg-2);
    border-bottom: 1px solid var(--color-border);
  }

  .layout-collapse-demo .arco-layout-header .trigger {
    margin-left: 20px;
    border-radius: 5px;
    display: flex; /* 按钮内部flex布局 */
    align-items: center; /* 图标垂直居中 */
  }
  .secondBread {
    width: 100%;
    height: 50px;
    margin: 5px 0px 5px 0px;
    position: relative;
    // border-bottom: 1px solid #c8cfe1ff;
    display: flex;
    // justify-content: center;
    align-items: center;
  }
  .tag {
    text-align: center;
    position: relative;
    display: flex;
    user-select: none;
    justify-content: center;
    font-size: 14px;
    margin-left: 10px;
    background: var(--color-fill-3);
    color: var(--color-text-2);
    width: 110px;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    &:hover {
      color: var(--color-text-1);
      .close-icon {
        opacity: 1;
        visibility: visible;
      }
    }
  }

  .clickBread {
    font-weight: 500;
    padding-left: 13px;
    background-color: rgb(64, 158, 255);
    border: 1px solid rgb(64, 158, 255);
  }
  .clickBread::before {
    content: "";
    background: #fff;
    position: absolute;
    left: 7px;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }
  .close-icon {
    width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    align-items: center;
    border: none;
    justify-content: center;
    display: inline-block;
    margin-left: 5px;
    &:hover {
      border: 1px solid #495060;
      border-radius: 50%;
    }
  }
  .right-icons {
    position: absolute;
    display: flex;
    right: 130px;
    .btn {
      margin: 0px 5px 0 5px;
    }
  }
  .userimg {
    position: absolute;
    right: 50px;
    width: 40px;
    height: 40px;
    align-items: center;
    display: flex;
    justify-content: center;
    img {
      width: 40px;
      height: 40px;
      cursor: pointer;
      border-radius: 10px;
    }
  }
`;
